<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
    <div class="breadcrumb_wrap">
        <ul class="breadcrumb">
            <li>您的位置：</li>
            <li> <a href="user_list.html">用户管理</a> <span class="divider">></span> </li>
            <li class="active">列表</li>
        </ul>
    </div>
    <div class="select_box " >
        <form class="form-horizontal" role="form">
            <div class="form-group col-md-4">
                <label class="control-label">账号：</label>
                <input type="text" class="form-control" ng-model="searchParam.userName">
            </div>
            <div class="form-group col-md-4">
                <label class="control-label">公司名称：</label>
                <input type="text" class="form-control" ng-model="searchParam.companyName">
            </div>
            <div class="form-group col-md-4">
                <label class="control-label">信用代码：</label>
                <input type="text" class="form-control" ng-model="searchParam.xydm">
            </div>
            <div class="form-group col-md-4">
                <label class="control-label">手机号：</label>
                <input type="text" class="form-control" ng-model="searchParam.phone">
            </div>
            <div class="form-group col-md-4">
                <label class="control-label">区域：</label>
                <input type="text" class="form-control" ng-model="searchParam.phonePlace">
            </div>
            <div class="form-group col-md-4 button_box ">
                <button type="button" class="btn btn-primary" ng-click="searchList()"><i class="glyphicon glyphicon-search"></i>搜索</button>
            </div>
        </form>
    </div>
    <div class="table-responsive con_list">
        <table class="table table-striped">
            <thead>
                <tr>
                    <th><input type="checkbox" ng-model="allCheck"></th>
                    <th>账号</th>
                    <th>姓名</th>
                    <th>公司名称</th>
                    <th>信用代码</th>
                    <th>注册时间</th>
                    <th>状态</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="user in userList">
                    <th><input type="checkbox" ng-checked="allCheck" name="userMsg" value="{{user.id}}"></th>
                    <td>{{user.userName}}</td>
                    <td>{{user.realName}}</td>
                    <td>{{user.companyName}}</td>
                    <td>{{user.xydm}}</td>
                    <td>{{user.registTime|dateStr:'yyyy-MM-dd HH:mm:ss'}}</td>
                    <td ng-if="user.checkStatus==0">未审核</td>
                    <td ng-if="user.checkStatus==1">通过审核</td>
                    <td ng-if="user.checkStatus==2">未通过审核</td>
                    <td class="ops">
                        <button type="button" class="btn btn-primary"  ><a href="/xdd/common/user/{{user.id}}">查看</a></button>
                        <button type="button" class="btn btn-primary del"><a href="/xdd/common/user/update/{{user.id}}">编辑</a></button>
                        <button type="button" class="btn btn-primary del" ng-click="deleteUser(user)" >删除</button>
                        <button type="button" class="btn btn-primary del" ng-click="checkUser(user)" >审核</button>
                        <button type="button" class="btn btn-primary del" ng-click="userRoleFP(user)" >角色分配</button>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    <div class="page_wrap">
        <div class="text-center scott">
            <uib-pagination  total-items="totalItems" ng-model="currentPage" boundary-links="true" max-size="5"   ng-change="pageChanged()" items-per-page="itemsPerPage" previous-text="&lsaquo;" next-text="&rsaquo;" first-text="&laquo;" last-text="&raquo;"></uib-pagination>
        </div>
        共{{totalItems}}条
    </div>
</div>